package com.sat.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sat.goods.model.Category;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {

    @Select("SELECT * FROM `tb_category` WHERE `parent_id`=#{pid}")
    List<Category> fingByPid(@Param("pid") Integer pid);
}
